﻿namespace PillBox.Client.ViewModels
{
    using System.Collections.Generic;
    using PillBox.Client.Framework;

    public class ScheduleSelectionChoiceViewModel
    {
        private long _personID;
        public long PersonID
        {
            get { return _personID; }
            set
            {
                _personID = value;
            }
        }

        private string _displayText;
        public string DisplayText
        {
            get { return _displayText; }
            set
            {
                _displayText = value;
            }
        }

        private string _displayImage;
        public string DisplayImage
        {
            get { return _displayImage; }
            set
            {
                _displayImage = value;
            }
        }
		
		private string _displayColor;
		public string DisplayColor
		{
			get { return _displayColor; }
			set
			{
				_displayColor = value;
			}
		}

        public IEnumerable<IResult> Open()
        {
            yield return Show.Screen<ScheduleViewModel>()
                .Configured(x => x.WithSchedule(this.PersonID));
        }
    }
}